package com.itheima.project.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.project.basic.BasicVo;
import com.itheima.project.vo.file.FileVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName BrandVo.java
 * @Description 品牌
 */
@Data
@NoArgsConstructor
public class BrandVo extends BasicVo {

    private static final long serialVersionUID = 1L;

    /**
     * dasdasd
     * @param id
     * @param brandName
     * @param category
     * @param enterpriseId
     */
    @Builder
    public BrandVo(Long id,String brandName,String category,Long enterpriseId){
        super(id);
        this.brandName=brandName;
        this.category=category;
        this.enterpriseId=enterpriseId;
    }
    // hibernate-validation    springboot - web

//    @NotBlank(message = "品牌名称不能为空")
    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "品牌分类")
    private String category;
    @ApiModelProperty(value = "商户号")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long enterpriseId;

    @ApiModelProperty(value = "选中节点")
    private List<Long> checkedIds;

    @ApiModelProperty(value = "附件信息",dataType = "FileVo")
    private FileVo fileVo;

}
